Optimal. Leaf size=37 \[ -\frac {2 \sqrt {a} \sinh ^{-1}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a \csc (e+f x)+a}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {3801, 215} \[ -\frac {2 \sqrt {a} \sinh ^{-1}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a \csc (e+f x)+a}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 3801
Rubi steps
\begin {align*} \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx &=-\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,\frac {a \cot (e+f x)}{\sqrt {a+a \csc (e+f x)}}\right )}{f}\\ &=-\frac {2 \sqrt {a} \sinh ^{-1}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a+a \csc (e+f x)}}\right )}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.40, size = 108, normalized size = 2.92 \[ \frac {2 \cot (e+f x) \sqrt {a (\csc (e+f x)+1)} \left (\log (\csc (e+f x)+1)-\log \left (\csc ^{\frac {3}{2}}(e+f x)+\sqrt {\csc (e+f x)}+\sqrt {\cot ^2(e+f x)} \sqrt {\csc (e+f x)+1}\right )\right )}{f \sqrt {\cot ^2(e+f x)} \sqrt {\csc (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.80, size = 283, normalized size = 7.65 \[ \left [\frac {\sqrt {a} \log \left (\frac {a \cos \left (f x + e\right )^{3} - 7 \, a \cos \left (f x + e\right )^{2} - 9 \, a \cos \left (f x + e\right ) + {\left (a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) - a\right )} \sin \left (f x + e\right ) + \frac {4 \, {\left (\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 3\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 3\right )} \sqrt {a} \sqrt {\frac {a \sin \left (f x + e\right ) + a}{\sin \left (f x + e\right )}}}{\sqrt {\sin \left (f x + e\right )}} - a}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right )^{2} - 1\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 1}\right )}{2 \, f}, \frac {\sqrt {-a} \arctan \left (\frac {{\left (\cos \left (f x + e\right )^{2} + 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt {-a} \sqrt {\frac {a \sin \left (f x + e\right ) + a}{\sin \left (f x + e\right )}}}{2 \, a \cos \left (f x + e\right ) \sqrt {\sin \left (f x + e\right )}}\right )}{f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.35, size = 113, normalized size = 3.05 \[ \frac {\sqrt {2}\, \sqrt {\frac {1}{\sin \left (f x +e \right )}}\, \left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a \left (1+\sin \left (f x +e \right )\right )}{\sin \left (f x +e \right )}}\, \left (\arcsinh \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+\arctanh \left (\frac {\sqrt {2}}{2 \sqrt {\frac {1}{1+\cos \left (f x +e \right )}}}\right )\right )}{f \left (1-\cos \left (f x +e \right )+\sin \left (f x +e \right )\right ) \sqrt {\frac {1}{1+\cos \left (f x +e \right )}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \csc \left (f x + e\right ) + a} \sqrt {\csc \left (f x + e\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.03 \[ \int \sqrt {a+\frac {a}{\sin \left (e+f\,x\right )}}\,\sqrt {\frac {1}{\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\csc {\left (e + f x \right )} + 1\right )} \sqrt {\csc {\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________